﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Justin.BI.DBTools;

namespace WindowsFormsApplication1
{
    public class Student : Entity
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string TeacherName { get; set; }


        public override object GetPropertyValue(string propertyName)
        {
            throw new NotImplementedException();
        }

        public override List<object> GetByPropertiesValue(string[] propertyNames)
        {
            Type t = this.GetType();

            List<object> values = new List<object>();
            foreach (var item in propertyNames)
            {
                object o = t.GetProperty(item).GetValue(this);
                values.Add(o == null ? "" : o);
            }
            return values;
        }
    }
}
